package org.lanqiao.controller;

import org.lanqiao.service.TypeService;
import org.lanqiao.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@Repository
@ResponseBody
@RequestMapping("/type")
public class TypeController {

    @Autowired
    private TypeService typeService;
    /**
     * @Author 刘金渝
     * @Description //TODO
     * @Date 2019/5/22 16:15
     * @Param []
     * @explain       查询所有的类型
     * @return org.lanqiao.util.Result
     */

    @RequestMapping(value = "/all")
    public Result selectAll(){
        Result result = typeService.selectAll();
        return result;
    }

}
